<?php


namespace App\Http\Requests\Warehouse\Package;


use Illuminate\Foundation\Http\FormRequest;

class UpdateRequest
    extends FormRequest
{
    /**
     * @return array
     * @author luffyzhao@vip.126.com
     */
    public function rules()
    {
        return [
            'name' => ['required', 'string'],
            'price' => ['required', 'numeric'],
            'weight' => ['required', 'numeric'],
            'length'=> ['required', 'numeric'],
            'width'=> ['required', 'numeric'],
            'height'=> ['required', 'numeric'],
            'bearing'=> ['required', 'numeric'],
            'remark' => ['nullable'],
        ];
    }
}
